package com.jzo2o.customer.controller.open;

import com.jzo2o.common.constants.UserType;
import com.jzo2o.customer.model.domain.ServeProvider;
import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.model.dto.request.LoginForWorkReqDTO;
import com.jzo2o.customer.model.dto.response.LoginResDTO;
import com.jzo2o.customer.service.IServeProviderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @BelongsProject: jzo2o-customer
 * @BelongsPackage: com.jzo2o.customer.controller.open
 * @Author: songYuHang
 * @CreateTime: 2025-03-21  14:44
 * @Description: TODO
 * @Version: 1.0
 */
@RestController("serveProviderController")
@RequestMapping("/open/serve-provider")
@Api(tags = "机构端客户注册相关接口")
public class ServeProviderController {

    @Resource
    private IServeProviderService iServeProviderService;


    @PostMapping("/institution/register")
    @ApiOperation("服务人员/机构人员登录接口")
    public void loginForWorker(@RequestBody @Validated InstitutionRegisterReqDTO institutionRegisterReqDTO) {
        iServeProviderService.register(institutionRegisterReqDTO);
    }


}
